package adv7;

import java.io.Serializable;

public class Employees implements Serializable {
	// 公司有很多员工（用List存储），员工有姓名，年龄，性别，职务，薪水、工号等属性
	private String name, sex, workNumber;
	private transient int age;

	public Employees(String name, String sex, String workNumber, int age) {
		super();
		this.name = name;
		this.sex = sex;
		this.workNumber = workNumber;
		this.age = age;
	}

	public Employees() {

	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getWorkNumber() {
		return workNumber;
	}

	public void setWorkNumber(String workNumber) {
		this.workNumber = workNumber;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	@Override
	public String toString() {
		return "员工信息： 姓名:" + name + ", 性别:" + sex + ",工号:" + workNumber
				+ ", 年龄：" + age;
	}
}
